import React from 'react'
import { Link } from 'react-router-dom'
import ArtInfo from './ArtDetails/ArtInfo'
export default function Artical() {
  const info = [
    //标题 发布时间 观看数 评论数 标签 字数
    { 
      link: '/detail',
      img: './img/1.png',
      title: '软考中级',
      time: '2022-3-38',
      watch: '166',
      comment: '0',
      label: '计算机基础',
      wordnum: '6522字',
      abstract:'hahahah'
    }
  ]
  return (
    info.map((info,index) => (
      <Link to={info.link} key={index}><ArtInfo img={info.img} title={info.title}   time={info.time}  watch={info.watch} 
      comment={info.comment}  label={info.label}  wordnum={info.wordnum} abstract={info.abstract} ></ArtInfo></Link>
    ))

  )
}

